import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: {
      username: 'yzh'
    }
  },
  mutations: {
    changeuserInfo (state, zjj) {
      // console.log(state)
      // 修改state中的值
      state.userInfo.username = zjj
      // console.log('..........')
      // console.log(zjj)
      // console.log('..........')
    }
  },
  actions: {},
  modules: {}
})
